<?php

declare(strict_types=1);

namespace App\Model;

use App\Overwrites\MineModel;

/**
 * @property int $id 
 * @property int $level 保险等级
 * @property string $name 名称
 * @property string $car_damage 车损保障
 * @property string $car_damage_sub 车损保障副描述
 * @property string $tripartite 三者保障
 * @property string $passenger 乘客保障
 * @property int $free_depreciation 免折旧费:0=否,1=是
 * @property int $no_need_advance 无需垫付:0=否,1=是
 * @property int $free_outage 免停运费:0=否,1=是
 * @property int $original_price 原本单价(天)
 * @property int $price 单价(天)
 * @property int $car_id 绑定车辆
 * @property string $detail 详情
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class Insurance extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'insurances';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'level', 'name', 'car_damage', 'car_damage_sub', 'tripartite', 'passenger', 'free_depreciation', 'no_need_advance', 'free_outage', 'original_price', 'price', 'detail','car_id', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'level' => 'integer', 'free_depreciation' => 'integer', 'no_need_advance' => 'integer', 'free_outage' => 'integer', 'original_price' => 'integer', 'price' => 'integer', 'car_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
